package com.yuju.order.enums;

public enum RoomOrderSettleStatusEnum {
	 WEIJIE((byte)1,"未结"),
	    ZOUJIE((byte)2, "走结"),
	    YIJIE((byte)3, "已结"),
	    YIFANJIE((byte)4, "已反结");
	    private byte value;
	    private String name;

	    RoomOrderSettleStatusEnum(byte value, String name) {
	        this.name = name;
	        this.value = value;
	    }

	    public String getName() {
	        return name;
	    }

	    public byte getValue() {
	        return value;
	    }
	    public String getNameByValue(byte value){
	    	for(RoomOrderSettleStatusEnum e : RoomOrderSettleStatusEnum.values()){
	    		if(e.getValue()== value){
	    			return e.getName();
	    		}
	    	}
			return "未知枚举";
	    }
	    
}
